﻿<%@ Page Title=""  Language="C#" MasterPageFile="~/Masterpages/Admin.Master" AutoEventWireup="true" CodeBehind="FaNewsList.aspx.cs" Inherits="cnFederal.Admin.FaNewsList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">




  <!---------------------------------        ListView ------------------>
      <table width="100%">
        <tr><td align ="center">
            <asp:Label ID="Label1" runat="server" Text="لیست مطالب" Font-Bold="True" Font-Size="12"></asp:Label>
    
            </td></tr>
        </table>
  <table width ="100%" runat="server" id="MainTable"> <tr><td>
       <asp:Panel ID="panel2" runat="server"  >
 <table><tr>

 
 <td>   
     <asp:DropDownList ID="DropDownList_antall" runat="server"  DataKeyNames="StempelID"
         onselectedindexchanged="DropDownList_antall_SelectedIndexChanged"
         
         AutoPostBack="True" TabIndex="20">
         <asp:ListItem>150</asp:ListItem>
         <asp:ListItem>50</asp:ListItem>
         <asp:ListItem>25</asp:ListItem>
         <asp:ListItem>10</asp:ListItem>
     </asp:DropDownList>   </td>
   
   <td>
     <asp:TextBox ID="txtDate" width="150px" runat="server" ToolTip="Kalendar" 
              AutoPostBack="True" ontextchanged="txtDate_TextChanged" TabIndex="21"></asp:TextBox>
                <cc1:CalendarExtender ID="CalendarExtender1" TargetControlID="txtDate" 
             Format="yyyy-MM-dd" runat="server"
              FirstDayOfWeek="Monday" CssClass="cal_Theme1">
        </cc1:CalendarExtender>
   </td>
         <td>
             <asp:RadioButton ID="RadioButtonDay" runat="server" 
                 GroupName="displayList" AutoPostBack="True" Text="Dag" 
                 oncheckedchanged="RadioButtonDay_CheckedChanged" TabIndex="23" />
        </td>
        

        <td> 
            <asp:RadioButton ID="RadioButtonMonth" runat="server" GroupName="displayList"
             AutoPostBack="True" Text="Måned" 
                oncheckedchanged="RadioButtonMonth_CheckedChanged" TabIndex="25" 
                Checked="True" />
        </td>

        <td>

         <asp:RadioButton ID="RadioButtonYear" runat="server" GroupName="displayList"
             AutoPostBack="True" Text="Year" 
                oncheckedchanged="RadioButtonYear_CheckedChanged" TabIndex="26" 
                Checked="false" />
           </td>

    <td>
        <asp:DropDownList ID="DropDownListDisplay" runat="server" AutoPostBack="True" 
            onselectedindexchanged="DropDownListDisplay_SelectedIndexChanged">
            <asp:ListItem Text="Enabled View" Value="1"></asp:ListItem>
            <asp:ListItem Text="Disabled View" Value="0"></asp:ListItem>
        </asp:DropDownList>
    </td>
     
     
    

     </tr></table>
         
     
     <div>
      
          <asp:ListView ID="ListView2" runat="server" DataKeyNames="Id"
     onitemediting="ListView2_ItemEditing" 
             OnSelectedIndexChanging="ListView2_SelectedIndexChanged" OnItemDeleting="ListView2_ItemDeleting"
             ViewStateMode="Enabled" onitemcanceling="ListView2_ItemCanceling1" 
             OnPagePropertiesChanging="PagePropertiesChanging" >
            
           <LayoutTemplate>
               
                         <table ID="itemPlaceholderContainer2" runat="server" border="0"   width="100%" style="border-style: inherit; border-width: thin; border-color: #D3CBE2; table-layout: fixed; overflow:auto;">
                           
                                <tr id="Tr2" runat="server" style="background-color: #2F4D84; color: #FFFFFF; font-weight: bold;">
                                <td id="Th5" runat="server" width="40"  align="center">
                                    <table align="center"><tr>
                                    <td valign="top" align="center">
                                   
                                    <asp:Label ID="Label4" width="30px" runat="server" Font-Size="X-Small" Text="Number ">
                                        </asp:Label>
                                    </td>
                                    
                                     
                                     </tr></table>
                                        
                                        </td>

                                    <td id="Th1" runat="server" width="40"  align="center">
                                    <table align="center"><tr>
                                    <td valign="top">
                                   
                                    <asp:Label ID="Label8"  runat="server" Font-Size="X-Small" Text="Date registered">
                                        </asp:Label>
                                    </td>
                                    
                                  

                                     </tr></table>
                                        
                                        </td>
                                  <%-- 
                                    <td id="Th7" runat="server" width="15"  align="center">
                                    <table align="center"><tr>
                                    <td valign="top">
                                   
                                    <asp:Label ID="Label6" runat="server" Font-Size="X-Small" Text="Date published">
                                        </asp:Label>
                                    </td>
                                    
                                    
                                     </tr></table>
                                        
                                        </td>
                                        
                                      
                                    <td id="Th4" runat="server" width="70"  align="center">
                                        <table align="center"><tr><td valign="top">
                                        <asp:Label ID="Label3" runat="server" Font-Size="X-Small"
                                     Text="Date End publish">
                                        </asp:Label>
                                        </td>
                                     
                                        </tr></table>
                                        </td>--%>

                                          <td id="Th2" runat="server" width="100"  align="center" style="overflow:auto;  ">
                                        <table align="center"><tr><td valign="top">
                                        <asp:Label ID="Label1" runat="server" Font-Size="X-Small"
                                     Text="Title">
                                        </asp:Label>
                                        </td>
                                   
                                        </tr></table>
                                        </td>
                                 
                                     <%--      <td id="Th3" runat="server" width="25"  align="center" style="overflow:auto;">
                                        <table align="center"><tr><td valign="top">
                                        <asp:Label ID="Label2" runat="server" Font-Size="X-Small"
                                     Text="Header">
                                        </asp:Label>
                                        </td>
                                     
                                        </tr></table>
                                        </td>--%>

                                         

                                         



                                      


                                     


                                     

                                      
                                    
                                </tr>
                                <tr ID="itemPlaceholder" runat="server">
                                </tr>

                            </table>
                           
                     
            </LayoutTemplate>
            
           <ItemTemplate>
           <%--<table id="Table1" runat="server" border="0" width="1000" style="border: thin solid #C0C0C0; margin: inherit; font-family: Arial;
                padding: inherit; table-layout: fixed; border-collapse: separate;">--%>
                <tr style="border: thin dotted #FFFFFF; background-color: #D0CCE6; color: #333333; font-size: 11px;">
                    <td width="50" valign="top" align="left">
                   <table><tr><td align="left" width="20"><asp:Label ID="Label_indeks" runat="server" Text='<%#Container.DataItemIndex+1 %>' Font-Size="10"></asp:Label> </td>
                   <td width="30" align="left"> 
                   <asp:LinkButton ID="LinkButton1" runat="server" Text="Edit" PostBackUrl='<%# Eval("Id","~/Admin/EditSelectedFaNews.aspx?Id={0}") %>'></asp:LinkButton>
                   </td></tr></table>
                    
                       
                    </td>
                    <td width="30" valign="top"> 
                      <asp:HyperLink ID="HyperLink66" runat="server" Text='<%# Eval("DateRegistered") %>'
                          NavigateUrl=''></asp:HyperLink>
                          
                         
                          </td>
                          <%-- <td width="30" valign="top">
                             <asp:HyperLink ID="HyperLink4" runat="server" Text=' '
                          NavigateUrl=""></asp:HyperLink>

                           </td>
                    <td width="100" valign="top" style="overflow:auto;">

                        <asp:Label ID="LabelProsjekt01" runat="server" Text=''
                         
                          NavigateUrl=""></asp:Label>

                           
                    </td>--%>
                
                      <td width="150px" valign="top" style="overflow:hidden; " align="right">
                     
                          <table><tr align="right"><td width="90%" align="right"> <asp:LinkButton ID="LinkButton2" runat="server" PostBackUrl='<%# Eval("Id","~/Admin/EditSelectedFaNews.aspx?Id={0}") %>' Text='<%# Eval("Title") %>'>
                          </asp:LinkButton></td>
                              
                              <td align="right" width="10%"><asp:ImageButton ID="ImageButtonDeleteItem" runat="server" ImageUrl="~/bilder/applikasjon/deleteIcon.png" OnClientClick = "return confirm('Are you sure you want to delete?');" CommandName="Delete" ToolTip="Delete row" />
</td></tr></table>
                         


                   

                        
                    </td>
<%--
                    <td width="150px" valign="top" style="overflow:auto; ">
                     
                        <asp:Label ID="Label5" runat="server"  Text=''
                          NavigateUrl=""></asp:Label>
                          
                    </td>--%>

                 

                         
                </tr>
           
            </ItemTemplate>
          
        </asp:ListView>
       
   
    
    
    <table bgcolor="White" width="100%"><tr><td>
    <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView2" 
            OnPreRender="pager_click" PageSize="150" >
            <Fields>
                <asp:NumericPagerField NextPageText="Next" PreviousPageText="Previous" />
            </Fields>
        </asp:DataPager>
    </td></tr></table>
    
   </div>
    
    </asp:Panel>

   

  </td></tr></table>



 <!----------------------------Listview -------------------------------->


</asp:Content>
